package com.zhoulu.enums;


public enum RoleEnum {

    Teacher("teacher", "教师"),
    Student("student", "学生"),
    Admin("admin", "管理员");

    private String code;
    private String name;

    private RoleEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
